package daily;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

/**
 * 输入两个字符串，从第一字符串中删除第二个字符串中所有的字符
 */
public class RemString {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str1="";
        String str2="";
        List<Character> list = new ArrayList<>();
        while (scanner.hasNext()){
            str1=scanner.nextLine();
            str2=scanner.nextLine();
            if (str1 == "") return;
            if (str2 == "") return ;
            for (int i = 0; i < str1.length(); i++) {
                if (!(str2.contains(str1.charAt(i) + ""))){
                    list.add(str1.charAt(i));
                }
            }
            //遍历list，将list中的元素输出
            for (int k = 0; k < list.size(); k++) {
                System.out.print(list.get(k) + "");
            }
        }

    }
}
